<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<link rel="stylesheet" type="text/css" href="PLUGINS_ROOT/org.polarsys.capella.doc/html/styles.css" media="all"/>
		<title>Command line Importer</title>
	</head>
	<body>
		<h1 id="Command_line_Importer">Command line Importer</h1>
		<p>The Capella Requirements viewpoint provides the capability to launch a ReqIF file import from command line.</p>
		<h2 id="Mandatory_parameters:">Mandatory parameters:</h2>
		<p>-appid: id of the command line application to be launched.

			<br/>
			-filepath: aird file path (relative to the workspace).
		</p>
		<h2 id="Optional_parameters:">Optional parameters:</h2>
		<p>-data: path to be used for the workspace.

			<br/>
			-import: defines a list of projects to import into the workspace before doing the actual job (the list of projects is a '|' separated list).
		</p>
		<p>
			<br/>
		</p>
		<table class="wikitable">
			<tr>
				<td>
					<img height="32" width="32" border="0" src="PLUGINS_ROOT/org.polarsys.capella.vp.requirements.doc/images/info.png"/>
				</td>
				<td>Default behavior of the command line support checks that the specified workspace is not in use by another instance of Eclipse.</td>
			</tr>
		</table>
		<p>
			<br/>
		</p>
		<table class="wikitable">
			<tr>
				<td>
					<img height="32" width="32" border="0" src="PLUGINS_ROOT/org.polarsys.capella.vp.requirements.doc/images/info.png"/>
				</td>
				<td>If the path to the aird file, or the path to the workspace, or the path to the log file contains white space, it should be in quotes (eg: 
					<b>-data "D: \Application Data\workspace"</b>)
				</td>
			</tr>
		</table>
		<h2 id="Import_example">Import example</h2>
		<p>This command imports the file <i>d:/test.reqif</i> into the <i>&lt;workspacePath&gt;</i>/test/test.aird file. The project <i>test</i> is an existing project into the specified workspace. An <i>importcontext </i>parameter allows to specify the URI of the model element on which the import will be applied.</p>
		<p>
			<i>&lt;CapellaInstallationPath&gt;/eclipse.exe -nosplash</i>
		</p>
		<p>
			<i>-application org.polarsys.capella.core.commandline.core</i>
		</p>
		<p>
			<i>-appid org.polarsys.capella.vp.requirements.importer.commandline</i>
		</p>
		<p>
			<i>-data &lt;workspacePath&gt; </i>
		</p>
		<p>
			<i>-filepath /test/test.aird</i>
		</p>
		<p>
			<i>-reqifpath d:/test.reqif</i>
		</p>
		<p>
			<i>-importcontext "test/test.capella#971d9934-9780-4e41-b02e-312d0eac3223"</i>
		</p>
	</body>
</html>